<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录成功</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <!-- 配置Tailwind自定义颜色 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#10b981', // 绿色作为主色调，表示成功
                    },
                }
            }
        }
    </script>
    
    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .animate-float {
                animation: float 3s ease-in-out infinite;
            }
            @keyframes float {
                0% { transform: translateY(0px); }
                50% { transform: translateY(-10px); }
                100% { transform: translateY(0px); }
            }
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen flex items-center justify-center p-4">
    <div class="w-full max-w-md bg-white rounded-2xl shadow-lg overflow-hidden transition-all duration-300 hover:shadow-xl">
        <!-- 顶部成功图标区域 -->
        <div class="bg-primary p-8 flex justify-center">
            <div class="w-20 h-20 rounded-full bg-white flex items-center justify-center animate-float">
                <i class="fa fa-check text-4xl text-primary"></i>
            </div>
        </div>
        
        <!-- 中间信息区域 -->
        <div class="p-8 text-center">
            <h1 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-gray-800 mb-2">登录成功！</h1>
            <p class="text-gray-600 mb-8">欢迎回来，您已成功登录系统</p>
            
            <!-- 用户信息展示 -->
            <div class="mb-8 p-4 bg-gray-50 rounded-lg">
                <div class="flex items-center justify-center space-x-3 mb-2">
                    <i class="fa fa-user-circle text-primary text-xl"></i>
                    <span class="font-medium">user@example.com</span>
                </div>
                <p class="text-sm text-gray-500">登录时间: <span id="loginTime"></span></p>
            </div>
            
            <!-- 操作按钮 -->
            <div class="flex flex-col space-y-3">
                <a href="#" class="bg-primary hover:bg-primary/90 text-white font-medium py-3 px-4 rounded-lg transition-all duration-200 flex items-center justify-center">
                    <i class="fa fa-home mr-2"></i> 进入首页
                </a>
                <a href="#" class="border border-gray-300 hover:border-primary hover:text-primary text-gray-700 font-medium py-3 px-4 rounded-lg transition-all duration-200 flex items-center justify-center">
                    <i class="fa fa-cog mr-2"></i> 账户设置
                </a>
                <a href="#" class="text-gray-500 hover:text-gray-700 text-sm transition-colors duration-200">
                    <i class="fa fa-sign-out mr-1"></i> 退出登录
                </a>
            </div>
        </div>
    </div>

    <script>
        // 显示当前登录时间
        document.addEventListener('DOMContentLoaded', function() {
            const now = new Date();
            const options = { 
                year: 'numeric', 
                month: 'long', 
                day: 'numeric', 
                hour: '2-digit', 
                minute: '2-digit' 
            };
            document.getElementById('loginTime').textContent = now.toLocaleString('zh-CN', options);
        });
    </script>
</body>
</html>
